CC = gcc
CFLAGS = -Wall -g -pedantic -std=c99
O_FILES = ./b64_decode.o ./b64_encode.o
EXEC = ../exec/tp0
EJEC_SRC = tp0.c

all: $(EXEC)

clean:
	rm $(O_FILES)
	rm $(EXEC)
	rmdir ../exec

execute:
	$(EXEC)

%.o: %.c %.h
	$(CC) $(CFLAGS) -o $@ -c $<

$(EXEC): $(EJEC_SRC) $(O_FILES)
	mkdir ../exec; $(CC) $(CFLAGS) -o $(EXEC) $(EJEC_SRC) $(O_FILES)
